// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.less'
import {message} from 'ant-design-vue'
import {get, post,downLoadFile,deletefn} from './common/axios'
import {getCPG, postCPG, putCPG, downLoadFileCPG,deletefnCPG} from './common/axiosCPG'
import moment from 'moment'

import less from "less";
import {Button} from "ant-design-vue";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
const echarts=require('echarts')


Vue.config.productionTip = false

Vue.use(less)
Vue.use(Antd)

Vue.use(Button)

Vue.prototype.$message = message
Vue.prototype.$post = post
Vue.prototype.$get = get
Vue.prototype.$moment = moment
Vue.prototype.$echarts = echarts
Vue.prototype.$downLoadFile=downLoadFile
Vue.prototype.$deletefn=deletefn
Vue.prototype.$postCPG = postCPG
Vue.prototype.$putCPG = putCPG;
Vue.prototype.$getCPG = getCPG
Vue.prototype.$downLoadFileCPG=downLoadFileCPG
Vue.prototype.$deletefnCPG=deletefnCPG

/* eslint-disable no-new */

Vue.use(ElementUI);

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
